<?php 
$CI =& get_instance();
$CI->load->library("admin/admin_header_lib");
$CI->admin_header_lib->display_header_element(array("script"=>array("jquery-1.4.2","jquery.validate")));
$CI->admin_header_lib->display_header();

$CI->load->library('admin/admin_sidebar_lib');
$CI->admin_sidebar_lib->display_sidebar();
$count = 1;
?>
<div class="admin_right">
<div style="height:7px;"></div>
        	<div class="div0013">
            	<div class="div20" style="float: left; width: 100%;"><h2 class="head02">subscriber list
               <?php if(!empty($query)){ ?>
               		<span style="float:right;font-size:16px;"><a href="<?php echo site_url();?>admin/subscriber/export_excel">Export to excel</a></span>
			   <?php }?>
               </h2>
               </div>
                    
                <div class="clear"></div>
                <div class="line6"></div>
                <div class="div24">
                	<ul>
                    
                        <?php if(!empty($query)){ 
			
                        foreach($query as $row)
                        {
                        ?>
                        <li>
                       <?php /*?> <div class="div20"><?php echo $count;?></div><?php */?>
                        <div class="div250"><?php echo $row->subscriber_email;?></div>
                        <div class="div26"><?php echo ($row->status == 1?'Active':'Inactive');?></div>
                       
                        <div class="div0121"><?php echo anchor('admin/subscriber/delete/'.$row->subscriber_id,'Delete',array('title'=>'Delete the subscriber','onclick'=>'return confirm(\'Are you sure to delete?\')'));?></div>
                        <div class="clear"></div>
                        </li>
                        <div class="line6"></div>
                        <?php $count++;     } }else { echo "No records obtained.";}?>
                    </ul>
                </div>	
             </div>
         </div>

<?php //$this->load->view(TEMPLATE_NAME.'/admin/footer');
$CI->load->library('admin/admin_footer_lib');
$CI->admin_footer_lib->display_footer();

?>